var mongoose = require('mongoose'),
    materializedPlugin = require('mongoose-materialized'),
    Schema = mongoose.Schema;

var CatSchema = new Schema({
    type:Number,
    text: {type: String},
    parentId:String,
    des:String
});

CatSchema.plugin(materializedPlugin);

var Classify= mongoose.model('Classify', CatSchema,'classify'); // Category
module.exports=Classify;